package com.ang.hutool.excel.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;

public class DataUtil {

    public static List<UserBean> getDataList(){
        List<UserBean> list = new ArrayList<>();
        IntStream.range(0,20).forEach(i->{
            UserBean userBean = new UserBean("id"+i,"name"+i,i);
            list.add(userBean);
        });
        return list;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class UserBean{
        private String id;
        private String name;
        private Integer age;
    }
}
